package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.controller.vo.MemberVo;
import com.atguigu.gulimall.member.exception.PhoneExsitException;
import com.atguigu.gulimall.member.exception.UserNameExsitException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author humingyang
 * @email humingyang@163.com
 * @date 2021-06-03 23:06:29
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberVo memberVo);

    //检查用户名是否唯一
    void checkUserNameUnique(String userName) throws UserNameExsitException;

    //检查电话是否唯一
    void checkPhoneUnique(String phone) throws PhoneExsitException;

    MemberEntity login(MemberVo memberVo);
}

